# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-ccrawl
_pkgname=ccrawl
pkgver=1.9
pkgrel=5
pkgdesc='Uses clang to build a database related to various C/C++ data structures.'
arch=('any')
url='https://github.com/bdcht/ccrawl'
license=('GPL3')
depends=('python' 'python-pymongo' 'python-click' 'python-traitlets'
         'python-tinydb' 'python-requests' 'python-pyparsing' 'clang')
makedepends=('git' 'python-setuptools' 'python-pip')
source=("git+https://github.com/bdcht/$_pkgname.git")
sha512sums=('SKIP')

build() {
  cd $_pkgname

  python setup.py build
}

package() {
  cd $_pkgname

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

